package com.ktt.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.ktt.mapper.OrderMapper;
import com.sjh.vo.Bis_bisiness_order;
@Service
@Transactional
public class OrderServiceImpl implements OrderService{

	@Autowired
	private OrderMapper orderMapper;
	
	@Override
	@Transactional(propagation=Propagation.SUPPORTS)
	public List<Bis_bisiness_order> listOrder(Map map) {
		return this.orderMapper.listOrder(map);
	}

	@Override
	@Transactional(propagation=Propagation.SUPPORTS)
	public Bis_bisiness_order getById(int id) {
		return this.orderMapper.getById(id);
	}

	@Override
	@Transactional(propagation=Propagation.SUPPORTS)
	public List<Bis_bisiness_order> upList(Map map) {
		return this.orderMapper.upList(map);
	}

	@Override
	@Transactional(propagation=Propagation.REQUIRED)
	public Bis_bisiness_order getCount(String id) {
		return this.orderMapper.getCount(id);
	}

}
